//
//  FundManagementRecordVC.m
//  优学荟管理系统
//
//  Created by 星道 on 17/9/5.
//  Copyright © 2017年 星道三好. All rights reserved.
//

#import "FundManagementRecordVC.h"
#import "FundManagementRecordView.h"
#import "ZYSetTheCurrentRecordController.h"
@interface FundManagementRecordVC ()

@end

@implementation FundManagementRecordVC

- (void)viewDidLoad {

    [super viewDidLoad];

    self.title = self.mode ? @"星币提现记录":@"课程提现记录";

    // 分页点击
    [self.view addSubview:[FundManagementRecordView ConfigWithTitleArr:self.mode ? [self Coins]:[self Money] height:44 complete:^(NSInteger index) {


        if (self.mode) {

            // 星币
            [HUD showSuccess:[self Coins][index]];

        } else {

            // 资金
            [HUD showSuccess:[self Money][index]];
            
            if (0 == index) {
                
            }else if (1 == index){
                ZYSetTheCurrentRecordController *VC = [  [ZYSetTheCurrentRecordController alloc] init];
                [self addChildViewController:VC];
                VC.view.frame = CGRectMake(0, 108, SCREEN_WIDTH, SCREENH_HEIGHT-108);
                [self.view addSubview:VC.view];
                
                
            }else if (2 == index){
                
                
            }
            
            
            

        }
    }]];
}


- (NSArray *)Money {

    return @[@"课程提现", @"套餐提现", @"课时卡提现"];
}

- (NSArray *)Coins {

    return @[@"课程抵扣提现", @"佣金提现", @"平台补贴"];
}
@end
